<?php
$tier1="tier1.php";
include($tier1);

  $user=$_POST["user"];
  $pass=$_POST["pass"];


 function login($user,$pass)
  {
	echo "lol";
	connect(); 
	$query="select * from member where username='$user' and password='$pass'";
	result(); 
	if(mysql_num_rows($result)==0)
  	{    
        echo "<center><h1>Wrong Password or Username</h1></center>";
 	}
  	else
    {
        echo "<center><h1>Login successful</h1></center>";
    }
    
  }  

if(isset($_POST["user"]))
{

  
 
}
 
 // $conn=mysql_connect("localhost","root","");
 // mysql_select_db("tl2");
 //header("location:main_login.php");
  
?>
